//
//  AppController.m
//  AKLocalServer
//
//  Created by Yun Qing Teng on 11/12/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import "AppController.h"


@implementation AppController
- (void)awakeFromNib {
	server = [[AKLocalServer alloc] init];
	[server setDelegate:self];
}

- (IBAction)startServer:(id)sender
{
	[server publishServiceWithName:[serverName stringValue]];
}

- (void)serviceDidPublishedWithName:(NSString *)aName {
	NSLog(@"%@",aName);
}

- (IBAction)sendMessage:(id)sender
{
	[server sendMessage:@"aaa"];
}
@end
